<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('虾皮订单列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <li>
                                <label>订单号：</label>
                                <input type="text" name="orderSn"/>
                            </li>
                            <li>
                                <label>商店id：</label>
                                <input type="text" name="shopId"/>
                            </li>
                            <li>
                                <label>订单站点：</label>
                                <input type="text" name="region"/>
                            </li>
                            <li>
                                <label>币种：</label>
                                <input type="text" name="currency"/>
                            </li>
                            <li>
                                <label>COD单：</label>
                                <input type="text" name="cod"/>
                            </li>
                            <li>
                                <label>支付金额：</label>
                                <input type="text" name="totalAmount"/>
                            </li>
                            <li>
                                <label>物流渠道：</label>
                                <input type="text" name="shippingCarrier"/>
                            </li>
                            <li>
                                <label>支付方式：</label>
                                <input type="text" name="paymentMethod"/>
                            </li>
                            <li>
                                <label>预估运费：</label>
                                <input type="text" name="estimatedShippingFee"/>
                            </li>
                            <li>
                                <label>出货天数：</label>
                                <input type="text" name="daysToShip"/>
                            </li>
                            <li>
                                <label>最后发货日期：</label>
                                <input type="text" class="time-input" placeholder="请选择最后发货日期" name="shipByDate"/>
                            </li>
                            <li>
                                <label>买家id：</label>
                                <input type="text" name="buyerUserId"/>
                            </li>
                            <li>
                                <label>买家姓名：</label>
                                <input type="text" name="buyerUsername"/>
                            </li>
                            <li>
                                <label>实际运费：</label>
                                <input type="text" name="actualShippingFee"/>
                            </li>
                            <li>
                                <label>是否报关：</label>
                                <input type="text" name="goodsToDeclare"/>
                            </li>
                            <li>
                                <label>卖家备注更新时间：</label>
                                <input type="text" class="time-input" placeholder="请选择卖家备注更新时间" name="noteUpdateTime"/>
                            </li>
                            <li>
                                <label>是否拆分等单：</label>
                                <input type="text" name="splitUp"/>
                            </li>
                            <li>
                                <label>订单取消方：</label>
                                <input type="text" name="cancelBy"/>
                            </li>
                            <li>
                                <label>实际运费是否已确认：</label>
                                <input type="text" name="actualShippingFeeConfirmed"/>
                            </li>
                            <li>
                                <label>海外仓标识：</label>
                                <input type="text" name="fulfillmentFlag"/>
                            </li>
                            <li>
                                <label>捡货时间：</label>
                                <input type="text" class="time-input" placeholder="请选择捡货时间" name="pickupDoneTime"/>
                            </li>
                            <li>
                                <label>买家选择的物流渠道：</label>
                                <input type="text" name="checkoutShippingCarrier"/>
                            </li>
                            <li>
                                <label>退货运费：</label>
                                <input type="text" name="reverseShippingFee"/>
                            </li>
                            <li>
                                <label>卖家运费：</label>
                                <input type="text" name="sellerShippingFee"/>
                            </li>
                            <li>
                                <label>卖家打包时间：</label>
                                <input type="text" class="time-input" placeholder="请选择卖家打包时间" name="sellerPackageTime"/>
                            </li>
                            <li>
                                <label>卖家打包人：</label>
                                <input type="text" name="sellerPackageBy"/>
                            </li>
                            <li>
                                <label>仓库打包时间：</label>
                                <input type="text" class="time-input" placeholder="请选择仓库打包时间" name="warehousePackageTime"/>
                            </li>
                            <li>
                                <label>仓库打包人：</label>
                                <input type="text" name="warehousePackageBy"/>
                            </li>
                            <li>
                                <label>追踪单号：</label>
                                <input type="text" name="trackingNo"/>
                            </li>
                            <li>
                                <label>订单开始时间：</label>
                                <input type="text" class="time-input" placeholder="请选择订单开始时间" name="orderStartTime"/>
                            </li>
                            <li>
                                <label>订单修改时间：</label>
                                <input type="text" class="time-input" placeholder="请选择订单修改时间" name="orderModifiedTime"/>
                            </li>
                            <li>
                                <label>订单支付时间：</label>
                                <input type="text" class="time-input" placeholder="请选择订单支付时间" name="payTime"/>
                            </li>
                            <li>
                                <label>最后收货时间：</label>
                                <input type="text" class="time-input" placeholder="请选择最后收货时间" name="lastDeliveryTime"/>
                            </li>
                            <li>
                                <label>收货时间：</label>
                                <input type="text" class="time-input" placeholder="请选择收货时间" name="deliveryTime"/>
                            </li>
                            <li>
                                <label>返还时间：</label>
                                <input type="text" class="time-input" placeholder="请选择返还时间" name="refundTime"/>
                            </li>
                            <li>
                                <label>订单完成时间：</label>
                                <input type="text" class="time-input" placeholder="请选择订单完成时间" name="finishTime"/>
                            </li>
                            <li>
                                <label>创建时间：</label>
                                <input type="text" class="time-input" placeholder="请选择创建时间" name="createDate"/>
                            </li>
                            <li>
                                <label>最后修改时间：</label>
                                <input type="text" class="time-input" placeholder="请选择最后修改时间" name="lastUpdateDate"/>
                            </li>
                            <li>
                                <label>最后修改人：</label>
                                <input type="text" name="lastUpdateBy"/>
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">
                <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="order:Order:add">
                    <i class="fa fa-plus"></i> 添加
                </a>
                <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="order:Order:edit">
                    <i class="fa fa-edit"></i> 修改
                </a>
                <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="order:Order:remove">
                    <i class="fa fa-remove"></i> 删除
                </a>
                <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="order:Order:export">
                    <i class="fa fa-download"></i> 导出
                </a>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('order:Order:edit')}]];
        var removeFlag = [[${@permission.hasPermi('order:Order:remove')}]];
        var prefix = ctx + "order/Order";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                modalName: "虾皮订单",
                columns: [{
                    checkbox: true
                },
                {
                    field: 'orderId',
                    title: '表的id',
                    visible: false
                },
                {
                    field: 'orderSn',
                    title: '订单号'
                },
                {
                    field: 'shopId',
                    title: '商店id'
                },
                {
                    field: 'region',
                    title: '订单站点'
                },
                {
                    field: 'currency',
                    title: '币种'
                },
                {
                    field: 'cod',
                    title: 'COD单'
                },
                {
                    field: 'totalAmount',
                    title: '支付金额'
                },
                {
                    field: 'orderStatus',
                    title: '订单状态'
                },
                {
                    field: 'shippingCarrier',
                    title: '物流渠道'
                },
                {
                    field: 'paymentMethod',
                    title: '支付方式'
                },
                {
                    field: 'estimatedShippingFee',
                    title: '预估运费'
                },
                {
                    field: 'messageToSeller',
                    title: '买家留言'
                },
                {
                    field: 'daysToShip',
                    title: '出货天数'
                },
                {
                    field: 'shipByDate',
                    title: '最后发货日期'
                },
                {
                    field: 'buyerUserId',
                    title: '买家id'
                },
                {
                    field: 'buyerUsername',
                    title: '买家姓名'
                },
                {
                    field: 'actualShippingFee',
                    title: '实际运费'
                },
                {
                    field: 'goodsToDeclare',
                    title: '是否报关'
                },
                {
                    field: 'note',
                    title: '卖家备注'
                },
                {
                    field: 'noteUpdateTime',
                    title: '卖家备注更新时间'
                },
                {
                    field: 'splitUp',
                    title: '是否拆分等单'
                },
                {
                    field: 'buyerCancelReason',
                    title: '买家订单取消原因'
                },
                {
                    field: 'cancelBy',
                    title: '订单取消方'
                },
                {
                    field: 'cancelReason',
                    title: '订单取消原因'
                },
                {
                    field: 'actualShippingFeeConfirmed',
                    title: '实际运费是否已确认'
                },
                {
                    field: 'fulfillmentFlag',
                    title: '海外仓标识'
                },
                {
                    field: 'pickupDoneTime',
                    title: '捡货时间'
                },
                {
                    field: 'checkoutShippingCarrier',
                    title: '买家选择的物流渠道'
                },
                {
                    field: 'reverseShippingFee',
                    title: '退货运费'
                },
                {
                    field: 'sellerShippingFee',
                    title: '卖家运费'
                },
                {
                    field: 'sellerOrderStatus',
                    title: '卖家订单状态'
                },
                {
                    field: 'sellerPackageTime',
                    title: '卖家打包时间'
                },
                {
                    field: 'sellerPackageBy',
                    title: '卖家打包人'
                },
                {
                    field: 'warehouseOrderStatus',
                    title: '仓库订单状态'
                },
                {
                    field: 'warehousePackageTime',
                    title: '仓库打包时间'
                },
                {
                    field: 'warehousePackageBy',
                    title: '仓库打包人'
                },
                {
                    field: 'warehouseProcessStatus',
                    title: '仓库处理状态'
                },
                {
                    field: 'trackingNo',
                    title: '追踪单号'
                },
                {
                    field: 'orderStartTime',
                    title: '订单开始时间'
                },
                {
                    field: 'orderModifiedTime',
                    title: '订单修改时间'
                },
                {
                    field: 'payTime',
                    title: '订单支付时间'
                },
                {
                    field: 'lastDeliveryTime',
                    title: '最后收货时间'
                },
                {
                    field: 'deliveryTime',
                    title: '收货时间'
                },
                {
                    field: 'refundTime',
                    title: '返还时间'
                },
                {
                    field: 'finishTime',
                    title: '订单完成时间'
                },
                {
                    field: 'createDate',
                    title: '创建时间'
                },
                {
                    field: 'lastUpdateDate',
                    title: '最后修改时间'
                },
                {
                    field: 'lastUpdateBy',
                    title: '最后修改人'
                },
                {
                    title: '操作',
                    align: 'center',
                    formatter: function(value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.orderId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                        actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.orderId + '\')"><i class="fa fa-remove"></i>删除</a>');
                        return actions.join('');
                    }
                }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>